From 00fdbf168a2e984680fee4e044d8edb040404025 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 25 Jun 2009 18:28:59 +0100 Subject: [PATCH] p2m hap: Fix dirty vram tracking function This patch fixes an incorrect mode conversion when disable vram dirty tracking. Acked-by: Stefano Stabellini Signed-off-by: Wei Huang --- xen/arch/x86/mm/hap/hap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c index b9218de359..0e4ce30f68 100644 --- a/xen/arch/x86/mm/hap/hap.c +++ b/xen/arch/x86/mm/hap/hap.c @@ -90,7 +90,7 @@ int hap_disable_vram_tracking(struct domain *d) /* set l1e entries of P2M table with normal mode */ for (i = dirty_vram->begin_pfn; i < dirty_vram->end_pfn; i++) - p2m_change_type(d, i, p2m_ram_rw, p2m_ram_logdirty); + p2m_change_type(d, i, p2m_ram_logdirty, p2m_ram_rw); flush_tlb_mask(&d->domain_dirty_cpumask); return 0; -- 2.30.2